home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
qbbs
/
qbbs276s.zip
/
RICK-L.ZIP
/
MAIN-DIR.ZIP
/
CHKFILES.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-16
|
8KB
|
288 lines
rem > d:\chkfiles.!!!
XU PORT:1:ON
AT COM2:H1
WAIT 1
AT COM2:M0
ECHO Running CHKFILES
goto loop
:LOOP
CD \QUICK
mailtoss -k -f -c -p -l
IF EXIST 7559*.* RED D:\QUICK\7559*.* D:\QUICK\FILES
IF EXIST D:\QUICK\FILES\7559*.* GOTO QMXMAIL
IF EXIST D:\QUICK\FILES\75C5*.* GOTO QMXMAIL
IF EXIST \QMX\*.* GOTO QMXMAIL
IF EXIST FILEDOOR.UPD FD_UPD
CD \QUICK\FILES
IF EXIST FIDO*.NA COPY FIDO*.NA E:\MSNEW
IF EXIST FIDO*.NA DEL FIDO*.NA
IF NOT EXIST *.* GOTO END
SPAZ -D -F -O -V . *.*
IF EXIST NODELIST.* GOTO LOOP1
IF EXIST NODEDIFF.* GOTO LOOP1
IF EXIST FMLYLIST.* GOTO LOOP1
IF EXIST FMLYDIFF.* GOTO LOOP1
IF EXIST MAILLIST.* GOTO LOOP1
IF EXIST MAILDIFF.* GOTO LOOP1
IF EXIST ENETLIST.* GOTO LOOP1
IF EXIST ENETDIFF.* GOTO LOOP1
IF EXIST DNETLIST.* GOTO LOOP1
IF EXIST DNETDIFF.* GOTO LOOP1
IF EXIST QBSNODES.* GOTO LOOP1
IF EXIST DBNET.* GOTO LOOP1
IF EXIST JESUSBBS.* GOTO LOOP1
GOTO LOOP2
:LOOP1
IF EXIST NODELIST.* COPY NODELIST.* E:\NLIST
IF EXIST NODEDIFF.* COPY NODEDIFF.* E:\NLIST
IF EXIST FMLYLIST.* COPY FMLYLIST.* E:\NLIST
IF EXIST FMLYDIFF.* COPY FMLYDIFF.* E:\NLIST
IF EXIST MAILLIST.* COPY MAILLIST.* E:\NLIST
IF EXIST MAILDIFF.* COPY MAILDIFF.* E:\NLIST
IF EXIST ENETLIST.* COPY ENETLIST.* E:\NLIST
IF EXIST ENETDIFF.* COPY ENETDIFF.* E:\NLIST
IF EXIST DNETLIST.* COPY DNETLIST.* E:\NLIST
IF EXIST DNETDIFF.* COPY DNETDIFF.* E:\NLIST
IF EXIST QBSNODES.* COPY QBSNODES.* E:\NLIST
IF EXIST DBNET.* COPY DBNET.* E:\NLIST
IF EXIST DBNET.* COPY DBNET.* D:\DBRIDGE
IF EXIST NODELIST.* COPY NODELIST.* D:\NODELIST
IF EXIST NODEDIFF.* COPY NODEDIFF.* D:\NODELIST
IF EXIST FMLYLIST.* COPY FMLYLIST.* D:\NODELIST
IF EXIST FMLYDIFF.* COPY FMLYDIFF.* D:\NODELIST
IF EXIST MAILLIST.* COPY MAILLIST.* D:\NODELIST
IF EXIST MAILDIFF.* COPY MAILDIFF.* D:\NODELIST
IF EXIST ENETLIST.* COPY ENETLIST.* D:\NODELIST
IF EXIST ENETDIFF.* COPY ENETDIFF.* D:\NODELIST
IF EXIST DNETLIST.* COPY DNETLIST.* D:\NODELIST
IF EXIST DNETDIFF.* COPY DNETDIFF.* D:\NODELIST
IF EXIST QBSNODES.* COPY QBSNODES.* D:\NODELIST
IF EXIST DBNET.* COPY DBNET.* D:\NODELIST
IF EXIST JESUSBBS.* GOTO JESUSBBS
IF EXIST *.TIC GOTO TICK
IF EXIST NODELIST.* RED NODELIST.* HOLD
IF EXIST NODEDIFF.* RED NODEDIFF.* HOLD
IF EXIST FMLYLIST.* RED FMLYLIST.* HOLD
IF EXIST FMLYDIFF.* RED FMLYDIFF.* HOLD
IF EXIST MAILLIST.* RED MAILLIST.* HOLD
IF EXIST MAILDIFF.* RED MAILDIFF.* HOLD
IF EXIST ENETLIST.* RED ENETLIST.* HOLD
IF EXIST ENETDIFF.* RED ENETDIFF.* HOLD
IF EXIST DNETLIST.* RED DNETLIST.* HOLD
IF EXIST DNETDIFF.* RED DNETDIFF.* HOLD
IF EXIST QBSNODES.* RED QBSNODES.* HOLD
IF EXIST DBNET.* RED DBNET.* HOLD
GOTO NODEDIFF
:LOOP2
IF EXIST *.TIC GOTO TICK
IF EXIST FNEWS*.* GOTO FNEWS
IF EXIST CASTLE.ZIP REN CASTLE.ZIP CLFILES.ZIP
IF EXIST ??FILES.ZIP GOTO FILES
IF EXIST CA-TIM.ZIP GOTO TIM
E:
CD \MSUPS
IF EXIST e:\MSUPS\384-3LST.ZIP GOTO MEGALIST
GOTO END
rem ---------------------------file handling-------------------------
:NODEDIFF
echo The Label is NODEDIFF
D:
CD \NODELIST
IF EXIST NODEDIFF.* CALL FIDOUPD.BAT
IF EXIST FMLYDIFF.* CALL NETUPD.BAT
IF EXIST MAILDIFF.* CALL MAILUPD.BAT
IF EXIST ENDIFFNA.* CALL ENUPD.BAT
IF EXIST ENETDIFF.* CALL ENETUPD.BAT
IF EXIST AGAPDIFF.* CALL AGAPUPD.BAT
IF EXIST IPECDIFF.* CALL IPECUPD.BAT
IF EXIST DNETDIFF.* CALL DNETUPD.BAT
xarc /o *.*
PKUNZIP -o *.Z*
red *.a* hold
red *.z* hold
reN gold*.A?? GOLD*.$??
call xlax
fdel cut E:\NLIST\????list.* 1
fdel cut E:\NLIST\????diff.* 2
fdel cut E:\NLIST\???list.* 1
fdel cut E:\NLIST\???diff.* 2
fdel cut E:\NLIST\??list*.* 1
fdel cut E:\NLIST\??diff*.* 2
fdel cut E:\NLIST\dbnet.* 1
FDEL CUT E:\NLIST\QBSNODES.* 1
REN GOLD*.$?? GOLD*.A*
GOTO LOOP
:FNEWS
ECHO The label is FNEWS
DEL D:\QUICK\TXTFILES\BULLETF.ASC
CD \QUICK\FILES
TOZIP FNEWS*.*
PKZIP -U -Z FNEWS* < C:\APND\COMMENT.TXT
COPY D:\QUICK\FILES\FNEWS*.ZIP \DOWN\MNEWS
PKUNZIP -O FNEWS D:\QUICK\TXTFILES
REN D:\QUICK\TXTFILES\FIDO*.NWS FNEWS.TXT
STRIPFF D:\QUICK\TXTFILES\FNEWS.TXT D:\QUICK\TXTFILES\BULLETF.ASC
DEL D:\QUICK\TXTFILES\FNEWS.TXT
DEL D:\QUICK\FILES\FNEWS*.*
GOTO LOOP
:MEGALIST
ECHO The label is MEGALIST
copy e:\MSUPS\384-3LST.ZIP c:\MSCOMM
DEL e:\MSUPS\384-3LST.ZIP
GOTO LOOP
rem :JESUSBBS
rem ECHO The label is JESUSBBS
rem FDEL CUT E:\NLIST\JESUSBBS.* 1
rem DEL D:\QUICK\TXTFILES\BULLET3.ASC
rem PKUNPAK D:\QUICK\FILES\JESUSBBS.* D:\QUICK\TXTFILES\
rem REN D:\QUICK\TXTFILES\JESUSBBS.* BULLET3.ASC
rem GOTO TICK
:FILES
echo The label is FILES
MD \TEMP-DFB
:ENDFILES
CD\QUICK\FILES
ECHO Y | DEL \TEMP-DFB\*.*
wait 3
IF EXIST CLFILES.ZIP GOTO CLFILES
IF EXIST SSFILES.ZIP GOTO SSFILES
IF EXIST DBFILES.ZIP GOTO DBFILES
IF EXIST SLFILES.ZIP GOTO SLFILES
IF EXIST MCFILES.ZIP GOTO MCFILES
IF EXIST STFILES.ZIP GOTO STFILES
ECHO Y | DEL \TEMP-DFB
RD \TEMP-DFB
wait 3
GOTO LOOP
:CLFILES
d:
CD \QUICK\FILES
PKUNZIP -o CLFILES.ZIP \TEMP-DFB
PKZIP -! -U -Z C:\DOWN\FILELIST\CLFILES \TEMP-DBF <C:\APND\COMMENT.TXT
REN \TEMP-DFB\*.* 5504-50.DFB
COPY \TEMP-DFB\5504-50.DFB D:\DBRIDGE\DFB
DEL \TEMP-DFB\5504-50.DFB
DEL CLFILES.ZIP
REM > D:\DBRIDGE\FILEBASE.DFB
GOTO ENDFILES
:DBFILES
d:
CD \QUICK\FILES
PKUNZIP -o DBFILES.ZIP \TEMP-DFB
PKZIP -! -U -Z C:\DOWN\FILELIST\DBFILES \TEMP-DBF <C:\APND\COMMENT.TXT
REN \TEMP-DFB\*.* 384-1.DFB
COPY \TEMP-DFB\384-1.DFB D:\DBRIDGE\DFB
DEL \TEMP-DFB\384-1.DFB
DEL DBFILES.ZIP
REM > D:\DBRIDGE\FILEBASE.DFB
GOTO ENDFILES
:SLFILES
d:
CD \QUICK\FILES
PKUNZIP -o SLFILES.ZIP \TEMP-DFB
PKZIP -! -U -Z C:\DOWN\FILELIST\SLFILES \TEMP-DBF <C:\APND\COMMENT.TXT
REN \TEMP-DFB\*.* 5504-52.DFB
COPY \TEMP-DFB\5504-52.DFB D:\DBRIDGE\DFB
DEL \TEMP-DFB\5504-52.DFB
DEL SLFILES.ZIP
REM > D:\DBRIDGE\FILEBASE.DFB
GOTO ENDFILES
:SSFILES
d:
CD \QUICK\FILES
PKUNZIP -o SSFILES.ZIP \TEMP-DFB
PKZIP -! -U -Z C:\DOWN\FILELIST\SSFILES \TEMP-DBF <C:\APND\COMMENT.TXT
REN \TEMP-DFB\*.* 384-10.DFB
COPY \TEMP-DFB\384-10.DFB D:\DBRIDGE\DFB
DEL \TEMP-DFB\384-10.DFB
DEL SSFILES.ZIP
REM > D:\DBRIDGE\FILEBASE.DFB
GOTO ENDFILES
:MCFILES
d:
CD \QUICK\FILES
PKUNZIP -o MCFILES.ZIP \TEMP-DFB
PKZIP -! -U -Z C:\DOWN\FILELIST\MCFILES \TEMP-DBF <C:\APND\COMMENT.TXT
REN \TEMP-DFB\*.* 384-4.DFB
COPY \TEMP-DFB\384-4.DFB D:\DBRIDGE\DFB
DEL \TEMP-DFB\384-4.DFB
DEL MCFILES.ZIP
REM > D:\DBRIDGE\FILEBASE.DFB
GOTO ENDFILES
:STFILES
d:
CD \QUICK\FILES
PKUNZIP -o STFILES.ZIP \TEMP-DFB
PKZIP -! -U -Z C:\DOWN\FILELIST\STFILES \TEMP-DBF <C:\APND\COMMENT.TXT
REN \TEMP-DFB\*.* 384-7.DFB
COPY \TEMP-DFB\384-7.DFB D:\DBRIDGE\DFB
DEL \TEMP-DFB\384-7.DFB
DEL STFILES.ZIP
REM > D:\DBRIDGE\FILEBASE.DFB
GOTO ENDFILES
:QMXMAIL
ECHO The label is QMXMAIL
COPY D:\QMX\*.* D:\QUICK\files
ECHO Y | DEL \QMX\*.*
CD \DBRIDGE\mail
rem qmx-db 1:384/3 X 30425
if not exist 75c5*.* goto loop
DBUTIL NORMAL SEND 384/1 D:\DBRIDGE\MAIL\75C5*.*
GOTO LOOP
:TICK
Echo The label is TICK
cd\QUICK\files
IF NOT EXIST SDNWS*.SDN GOTO TICK2
CD\QUICK\TXTFILES
md \tmp$tmp$
PAK -E /wa D:\QUICK\FILES\SDNWS*.SDN \tmp$tmp$
rem COPY \tmp$tmp$\SDNEWS.000+SDNEWS.001+SDNEWS.002+SDNEWS.003+SDNEWS.004+SDNEWS.005+SD SDNWS.ASC
del \tmp$tmp$\sdn*.*
rd \tmp$tmp$
:TICK2
MTA D:\QUICK\FILES\*.*
CD\QUICK
call tick
cd\QUICK\files
if exist *.tic ren *.tic *.ti$
goto loop
:TIM
CD\QUICK
COPY FILES\CA-TIM.ZIP TXTFILES
DEL FILES\CA-TIM.ZIP
CD TXTFILES
PKUNZIP -O CA-TIM
GOTO LOOP
rem ------------------------------------end---------------------------
:END
d:
del \chkfiles.!!!
cd\qnode1